<?php
include "includeFiles.php";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">
<script language="javascript">
function correctPNG()  
{ 
for(var i=0; i<document.images.length; i++) 
{ 
  var img = document.images[i] 
  var imgName = img.src.toUpperCase() 
  if (imgName.substring(imgName.length-3, imgName.length) == "PNG") 
  { 
   var imgID = (img.id) ? "id='" + img.id + "' " : "" 
   var imgClass = (img.className) ? "class='" + img.className + "' " : "" 
   var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 
   var imgStyle = "display:inline-block;" + img.style.cssText  
   if (img.align == "left") imgStyle = "float:left;" + imgStyle 
   if (img.align == "right") imgStyle = "float:right;" + imgStyle 
   if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle   
   var strNewHTML = "<span " + imgID + imgClass + imgTitle 
   + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
   + "(src=\'" + img.src + "\', sizingMethod='scale');\">"  
   img.outerHTML = strNewHTML 
   i = i-1 
  } 
} 
} 
window.attachEvent("onload", correctPNG);
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}
</script>
<style type="text/css">
<!--

-->
</style>
<link href="style/main_style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body,td,th {
	color: #115ab6;
}
body {
	background-color: #CCCCCC;
	background-repeat: no-repeat;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>


<body onLoad="MM_CheckFlashVersion('7,0,0,0','本页内容需要使用较新的 Adobe Flash Player 版本。是否现在下载它？');">
<?php include('top.php');?>
<!-- 中间开始 -->
<div class="box">
  <div class="left_pro">
   	  <div class="pro_new">
   	    <div class="top_pic"><img src="images/main02_29.jpg" width="127" height="33" alt="最新产品" border="0" /></div>
				<?php
				$SQL="SELECT * FROM hy_b_sys_products where 1 $condition order by SysProductsID desc limit 0,2  ";
		$result=mysql_query($SQL);
		while($row=mysql_fetch_array($result))
		{
		?>
      <div class="pro_pic"><a href="product_view.php?id=<?=$row[SysProductsID]?>&cateid=<?=$row[CateID]?>"><img src="../uploadfile/product_b/<?=$row[Photos]?>" width="198" height="164" alt="最新产品" border="0" /></a></div>
        <div class="title1"><a href="product_view.php?id=<?=$row[SysProductsID]?>&cateid=<?=$row[CateID]?>"><? echo getsubstr($row['ProductName'],10);?></a></div>
		<? }?>
		
		
         <!--   <div class="pro_pic"><a href="product_view.php"><img src="images/main02_25.jpg" width="198" height="164" alt="最新产品" border="0" /></a></div>
        <div class="title1"><a href="product_view.php">可程式恒温恒湿试验箱MHP系列</a></div>-->
		
		
    </div>
    </div>
  
  <div class="con_mid">  
    <div class="mid">
   	  <div class="top_pic"><img src="images/main02_24.jpg" alt="企业新闻" width="443" height="24" border="0" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="398,7,442,18" href="industry_news.php" />
<area shape="rect" coords="398,7,442,19" href="news.php" />
</map></div>
      <div class="top_news">
        	<ul>
			<?php
			 $SQL="SELECT * FROM `hy_b_info` where CateID = '11111' and `Lang`='cn' order by `SortNum` asc,`PublishDate`  desc limit 0,5  ";
  $objDb->query($SQL);
	$rss=$objDb->get_data();

?>
       	      <li class="h2"><a href="news_view.php"><?=getsubstr($rss[0]['Title'],18)?></a></li>
              <li class="h6"><?=date("Y/m/d",$rss[0][PublishDate])?></li>
                <li class="h4"><a href="news_view.php"><? echo getsubstr($rss[0]['Content'],50);?></a></li>
				
				<?php 
				if($rss)
				{
					for($i=1;$i<5;$i++)
					{
				?>
			
             <?php if($rss[$i]['CateID']!=''){?>
			  <li class="h6"><img src="images/main02_51.jpg" width="3" height="5" border="0" />&nbsp;&nbsp;<?=date("Y/m/d",$rss[$i][PublishDate])?></li>
			  <?php }?>
			  
                <li>&nbsp;&nbsp;<a href="news_view.php?id=<?=$rss[$i]['InfoID']?>&type=news&cateid=<?=$rss[$i]['CateID']?>">&nbsp;<?=getsubstr($rss[$i]['Title'],18)?></a></li>
				
				<?
					}
				}
				?>
				
    <!--          <li class="h6"><img src="images/main02_51.jpg" width="3" height="5" border="0" />&nbsp;&nbsp;22 / Apr / 2009</li>
                <li>&nbsp;&nbsp;&nbsp;<a href="news_view.php">微软最终成功收购雅虎美国在线（AOL）面临更大压力</a></li>
				
              <li class="h6"><img src="images/main02_51.jpg" width="3" height="5" border="0" />&nbsp;&nbsp;22 / Apr / 2009</li>
                <li>&nbsp;&nbsp;&nbsp;<a href="news_view.php">微软最终成功收购雅虎美国在线（AOL）面临更大压力</a></li>-->
                
        </ul>
      </div>
      <div class="news_pic"><img src="images/main02_39.jpg" width="99" height="228" alt="企业新闻" border="0" /></div>
    </div>
    
    <div class="mid">
   	  <div class="top_pic"><img src="images/main02_28.jpg" alt="企业新闻" width="443" height="24" border="0" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="398,7,442,18" href="news.php" />
<area shape="rect" coords="398,7,442,19" href="news.php" />
</map></div>
	 <div class="top_list">
     	<ul><?php
$SQL="SELECT * FROM `hy_b_info` where cateId = '11110' and `Lang`='cn' order by `SortNum` asc,`PublishDate`  desc limit 0,4 ";
$objDb->query($SQL);
$rss=$objDb->get_data();
  if($rss)
  {
  	foreach($rss as $row)
	{
?>



			

        	<li class="time"><?=date("Y/m/d",$row[PublishDate])?></li>
            <li class="txt"><a href="news_view.php?id=<?=$row['InfoID']?>&type=news&cateid=<?=$row['CateID']?>"><?=$row['Title']?></a></li>
<? }}?>
        
        </ul>
     </div>
	 
	</div>
  </div>
<!-- 中间结束 -->

<!-- 右边开始 -->
<div class="con_rig">
	<div class="box_rig">
    	<div class="top_pic"><img src="images/main02_19-14.jpg" width="243" height="23" alt="客户服务" border="0" /></div>
        <div class="ser">
        	<div class="top_pic"><img src="images/main03_36.jpg" width="70" height="68" border="0" /></div>
            <div class="ser_txt">
            	<ul>
            		<li class="h3"><a href="services.php">客户服务</a></li>
               	  <li class="h5"><a href="services.php">美泰秉承“以客户为中心，用服务促发展”的理念，以为用户提供优质服务</a>&nbsp;&nbsp;<img src="images/main02_45.jpg" width="10" height="10" border="0" /></li>
           	  </ul>
            </div>
        </div>
    </div>
    
    <div class="box_rig">
    	<div class="top_pic"><img src="images/main02_33.jpg" width="243" height="23" alt="客户服务" border="0" /></div>
        <div class="link">
		<form name="selectpro" id="selectpro" action="products.php"  method="get">
          <div class="link_l"><select name="cateid">
         	<?php
		$SQL="SELECT * FROM `hy_b_sys_procategory` where `ParentID`=1  order by SortNum  asc ";
		$objDb->query($SQL);
		$row=$objDb->get_data();
		if($row)
		{
			foreach($row as $key => $value)
			{
		?>
		      <option value="<?=$value['SysProCategoryID']?>">┝<?=$value[CateName]?></option>
			  <?php
					$SQL2="SELECT * FROM `hy_b_sys_procategory`  where `ParentID`='".$value['SysProCategoryID']."' order by SortNum  asc ";
					$objDb->query($SQL2);
					$row2=$objDb->get_data();
					$size=sizeof($row2);
					$i=0;
					if($row2)
					{
						foreach($row2 as $key => $value2)
						{
				 ?>
				  <option value="<?=$value2[SysProCategoryID]?>">&nbsp;&nbsp;┝<?=$value2[CateName]?></option>
				    <?php 
					$i++;	
						 }  
					}
					?>  
					
					     <?php 
		      }
	     } 
		?>
          </select></div>
          <div class="link_r">
             <input type="image" class="go" src="images/main02_36.jpg" width="51" height="20" border="0" />
           </div>
		   </form>
         </div>
    </div>
    <div class="box_rig">
    	<div class="top_pic"><img src="images/main02_50.jpg" width="243" height="23" alt="客户服务" border="0" /></div>
        <div class="tool_pic">
        	<ul>
            	<li><a href="products.php"><img src="images/main02_40.jpg" width="62" height="80" alt="产品中心" border="0" /></a></li>
                <li><a href="guestbook.php"><img src="images/main02_52.jpg" width="60" height="80" alt="产品中心" border="0" /></a></li>
              <li><a href="maps.php"><img src="images/main02_53.jpg" width="59" height="80" alt="产品中心" border="0" /></a></li>
                <li><a href="../admin/"><img src="images/main02_54.jpg" width="62" height="80" alt="产品中心" border="0" /></a></li>
          </ul>
        </div> 
    </div>
    
    <div class="box_rig">
    	<div class="top_pic"><a href="link.php"><img src="images/main02_48.jpg" width="243" height="23" alt="客户服务" border="0" /></a></div>
        <div class="tool_pic">
			<?php
			 $SQL="SELECT * FROM `hy_b_link` where CateID = '111' and `Lang`='cn' order by `SortNum` asc,`PublishDate`  desc limit 0,4  ";
  $objDb->query($SQL);
	$rss=$objDb->get_data();
  if($rss)
  {
  	foreach($rss as $row)
	{
?>
		
        	<div class="link_pic">
           	  <div class="top_pic"><a href="<?=$row['LinkUrl']?>" target="_blank"><img src="../admin/pic.php?imagename=../uploadfile/link/<?=$row['LogoPic']?>&imagewidth=113&imageheight=50&cuteit=0" border="0" /></a></div>
                <div class="title2"><a href="<?=$row['LinkUrl']?>" target="_blank"><?=$row['LinkName']?> </a></div>
          </div>
      
	  <? }}?>
	  
      </div> 
    </div>
</div>
</div>
<!-- 右边结束 -->

<!-- 下部开始 -->
<div class="box">
	<div class="box_list">
    	<div class="title_pic"><a href="knowledge.php">行业知识</a></div>
        <ul>
					<?php
			 $SQL="SELECT * FROM `hy_b_info` where CateID = '11112' and `Lang`='cn' order by `SortNum` asc,`PublishDate`  desc limit 0,8  ";
  $objDb->query($SQL);
	$rss=$objDb->get_data();
  if($rss)
  {
  	foreach($rss as $row)
	{
?>

        	<li class="title1"><a href="news_view.php?id=<?=$row['InfoID']?>&type=news&cateid=<?=$row['CateID']?>">·<?=$row['Title']?></a></li>
     <? }}?>
        </ul>
    </div>
    <div class="box_list">
    	<div class="title_pic"><a href="culture.php">企业文化</a></div>
        <ul>
        	<?php
			 $SQL="SELECT * FROM `hy_b_info` where CateID = '11011' and `Lang`='cn' order by `SortNum` asc,`PublishDate`  desc limit 0,8  ";
  $objDb->query($SQL);
	$rss=$objDb->get_data();
  if($rss)
  {
  	foreach($rss as $row)
	{
?>

        	<li class="title1"><a href="news_view.php?id=<?=$row['InfoID']?>&type=news&cateid=<?=$row['CateID']?>">·<?=$row['Title']?></a></li>
     <? }}?>
        </ul>
    </div>
    <div class="box_list">
    	<div class="title_pic"><a href="careers.php">招聘信息</a></div>
        <ul>
        						<?php
			 $SQL="SELECT * FROM `hy_b_recruitment` where  `Lang`='cn' order by `SortNum` asc,`PublishDate`  desc limit 0,8  ";
  $objDb->query($SQL);
	$rss=$objDb->get_data();
  if($rss)
  {
  	foreach($rss as $row)
	{
?>

       <li class="title1"><a href="news_view.php?id=<?=$row['RecruitmentID']?>&type=news&cateid=<?=$row['CateID']?>">·<?=$row['JobName']?></a></li>
     <? }}?>
        </ul>
    </div>
    <div class="box_list">
    	<div class="title_pic"><a href="guestbook.php">最新留言</a></div>
        <ul>
        	<li class="title1"><a href="guestbook_view.php">·零件＆材料的高温高湿试验条件</a></li>
            <li class="title1"><a href="guestbook_view.php">·零件＆材料的高温高湿试验条件</a></li>
            <li class="title1"><a href="guestbook_view.php">·零件＆材料的高温高湿试验条件</a></li>
            <li class="title1"><a href="guestbook_view.php">·零件＆材料的高温高湿试验条件</a></li>
            <li class="title1"><a href="guestbook_view.php">·零件＆材料的高温高湿试验条件</a></li>
            <li class="title1"><a href="guestbook_view.php">·零件＆材料的高温高湿试验条件</a></li>
            <li class="title1"><a href="guestbook_view.php">·零件＆材料的高温高湿试验条件</a></li>
            <li class="title1"><a href="guestbook_view.php">·零件＆材料的高温高湿试验条件</a></li>
        </ul>
    </div>
</div>
<!-- 下部结束 -->
<?php include('foot.php');?>